@extends('layouts.master')

@section('title')
    标签管理——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
@stop

@section('app_js')

@stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.product_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 规格列表
            </div>
            <div class="contentNav">
              <ul>
                <li>其他</li>
                <li class="btn btn-default"><a href="/show_spec">列表</a></li>
                <li class="btn btn-default active"><a href="/add_spec">新增</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember_new">
                {{ Form::open(['url'=>'/edit_spec']) }}
                <table class="table table-hover">
                  <tbody>
                    <tr>
                      <th>规格名称</th>
                    </tr>
                    <tr class="newBorder_top">
                      <th>
                        <input type="text" class="input-small form-control" name="spec_name" value="{{ $spec->spec_name }}">
                      </th>
                    </tr>
                    <tr>
                      <th>材质</th>
                    </tr>
                    <tr class="newBorder_top" name="quality">
                      <th>
                        <select class="form-control">
                            @foreach($quality as $k => $q)
                                <option value="{{ $q->cate_id }}" @if($spec->quality == $q->cate_id) selected="selected" @endif>{{ $q->cate_name }}</option>
                            @endforeach
                        </select>
                      </th>
                    </tr>
                  </tbody>
                </table>
                  <button type="submit" class="btn btn-default">提交</button>
                  <input type="hidden" name="label_id" value="{{ $spec->spec_id }}">
                  {{ Form::close() }}
            </div>
        </div>
    </div>
</div>
@stop